package com.dxl.common;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Description: 配置类
 *
 * @author: Yingyu Wei
 * <p>File Created at 2021/4/4</p>
 */
@ConfigurationProperties(prefix = "myalipay.test")
public class AlipayProperties {
    private String appid;
    // 邮箱
    private String email;
    // 私钥
    private String key;
    // 商户id
    private String productNo;

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getProductNo() {
        return productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo;
    }

    @Override
    public String toString() {
        return "AlipayProperties{" +
                "appid='" + appid + '\'' +
                ", email='" + email + '\'' +
                ", key='" + key + '\'' +
                ", productNo='" + productNo + '\'' +
                '}';
    }
}
